package com.liuchuanzheng.lcz_viewmove

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.liuchuanzheng.lcz_viewmove.databinding.ActivityMainBinding
/**
 * @author: 刘传政
 * @date: 2021/7/14 18:24
 * QQ:1052374416
 * 作用:
 * 注意事项:
 */
class MainActivity : AppCompatActivity() {
    lateinit var mViewBinding: ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mViewBinding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(mViewBinding.root)
        mViewBinding.btnLayoutParams.setOnClickListener {
            startActivity(Intent(this,LayoutParamsActivity::class.java))
        }
        mViewBinding.btnLayout.setOnClickListener {
            startActivity(Intent(this,LayoutActivity::class.java))
        }
        mViewBinding.btnTranslationX.setOnClickListener {
            startActivity(Intent(this,TranslationXActivity::class.java))
        }
        mViewBinding.btnScrollBy.setOnClickListener {
            startActivity(Intent(this,ScrollByActivity::class.java))
        }
        mViewBinding.btnScroller.setOnClickListener {
            startActivity(Intent(this,ScrollerActivity::class.java))
        }
        mViewBinding.btnTranslateAnimation.setOnClickListener {
            startActivity(Intent(this,TranslationAnimationActivity::class.java))
        }
        mViewBinding.btnObjectAnimator.setOnClickListener {
            startActivity(Intent(this,ObjectAnimatorActivity::class.java))
        }

    }
}